package com.ecnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.ProjectStageUser;
import com.ecnu.system.domain.dto.StageUserMissionVO;
import com.ecnu.system.domain.vo.statistic.StageUserByMission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ecnu_活动参与人表	 Mapper 接口
 * </p>
 *
 * @author zdn
 * @since 2025-03-20
 */
@Mapper
public interface ProjectStageUserMapper extends BaseMapper<ProjectStageUser> {

    /**
     * 批量插入
     *
     * @param users
     * @return
     */
    int insertBatch(@Param("list") List<ProjectStageUser> users);


    void deleteByFileId(@Param("id")String id);

    List<StageUserMissionVO> selectGroupByMissionId(@Param("stageUser")ProjectStageUser stageUser);

    List<StageUserByMission> selectListForList(@Param("id")String id, @Param("userId")Long userId);
}
